Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arc - validate Event raw type injection points and throw DefinitionException when found #31085

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

manovotn
Copy link
Contributor

Related to #28558

According to CDI spec, injecting a raw type of Event leads to a DefinitionException which we so far didn't check.
Tests mirror those in TCKs and should capture the scenarios in which this can potentially occur.

@manovotn manovotn requested review from Ladicek and mkouba February 10, 2023 17:49
@quarkus-bot quarkus-bot bot added the area/arc Issue related to ARC (dependency injection) label Feb 10, 2023
@quarkus-bot

This comment has been minimized.

@manovotn manovotn force-pushed the eventRawTypeValidation branch from f6f704e to 1de2d2a Compare February 13, 2023 13:10
@manovotn manovotn requested a review from mkouba February 13, 2023 13:10
@manovotn
Copy link
Contributor Author

@mkouba @Ladicek I've moved the validation directly into InjectionPointInfo init

@manovotn manovotn force-pushed the eventRawTypeValidation branch from 1de2d2a to 769c0c6 Compare February 13, 2023 14:08
@manovotn manovotn force-pushed the eventRawTypeValidation branch from 769c0c6 to 241480c Compare February 13, 2023 14:09
@mkouba mkouba added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Feb 13, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Feb 13, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@mkouba mkouba merged commit b5ac852 into quarkusio:main Feb 13, 2023
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Feb 13, 2023
@quarkus-bot quarkus-bot bot added this to the 3.0 - main milestone Feb 13, 2023
@manovotn manovotn deleted the eventRawTypeValidation branch February 14, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants